package mysql

import "time"

type Template struct {
	Id          int64     `db:"id" json:"id"`
	Cover       string    `db:"cover" json:"cover"`
	Data        string    `db:"data" json:"data"`
	Title       string    `db:"title" json:"title"`
	Width       int       `db:"width" json:"width"`
	Height      int       `db:"height" json:"height"`
	State       int       `db:"state" json:"state"`
	CreatedTime time.Time `db:"created_time" json:"created_time"`
	UpdatedTime time.Time `db:"updated_time" json:"updated_time"`
	Original    string    `db:"original" json:"original"`
	Resource    string    `db:"resource" json:"resource"`
	Category    int64     `db:"category" json:"category"`
	Tag         string    `db:"tag" json:"tag"`
	AdminId     int64     `db:"admin_id"`
}

func (Template) TableName() string {
	return "template"
}
